import { Controller ,Post,Body} from '@nestjs/common';
import {LoginService} from './login.service'
@Controller('login')
export class LoginController {
  constructor(
    private readonly loginService:LoginService
  ){
  }

  @Post()
  async login(
    @Body() data:any
  ){
   const result = await this.loginService.login(data)
   return result
  }
}
